{extend name="../../admin/view/main"}

{block name="content"}
<style>
    .store-total-container {
        font-size: 14px;
        margin-bottom: 20px;
        letter-spacing: 1px;
    }

    .store-total-container .store-total-icon {
        top: 45%;
        right: 8%;
        font-size: 65px;
        position: absolute;
        color: rgba(255, 255, 255, 0.4);
    }

    .store-total-container .store-total-item {
        color: #fff;
        line-height: 4em;
        padding: 15px 25px;
        position: relative;
    }

    .store-total-container .store-total-item > div:nth-child(2) {
        font-size: 46px;
        line-height: 46px;
    }
</style>

<div class="think-box-shadow store-total-container notselect">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm6 layui-col-md3">
            <div class="store-total-item nowrap" style="background:linear-gradient(-125deg,#57bdbf,#2f9de2);">
                <div>用户数量</div>
                <div>{$allUserCount}</div>
                <div>今日活跃数量 {$todayAliveUsersCount}</div>
            </div>
            <i class="store-total-icon layui-icon layui-icon-template-1"></i>
        </div>
        <div class="layui-col-sm6 layui-col-md3">
            <div class="store-total-item nowrap" style="background:linear-gradient(-125deg,#ff7d7d,#fb2c95)">
                <div>用户当前总资产</div>
                <div>{$totalBalance}</div>
                <div>用户充值总资产 {$totalRechargeAmount}</div>
            </div>
            <i class="store-total-icon layui-icon layui-icon-user"></i>
        </div>
        <div class="layui-col-sm6 layui-col-md3">
            <div class="store-total-item nowrap" style="background:linear-gradient(-141deg,#ecca1b,#f39526)">
                <div>用户总Spin资产</div>
                <div>{$totalUserSpinAmount}</div>
                <div>今日Spin资产 {$totdayUserSpinAmount}</div>
            </div>
            <i class="store-total-icon layui-icon layui-icon-survey"></i>
        </div>
        <div class="layui-col-sm6 layui-col-md3">
            <div class="store-total-item nowrap" style="background:linear-gradient(-113deg,#c543d8,#925cc3)">
                <div>平台总盈利</div>
                <div>{$systemTotalProfitAmount}</div>
                <div>今日盈利 {$systemTodayProfitAmount}</div>
            </div>
            <i class="store-total-icon layui-icon layui-icon-read"></i>
        </div>
    </div>
</div>

<div class="think-box-shadow store-total-container">
    <div class="margin-bottom-15" style="font-weight: bold">实时概况</div>

    <div class="layui-row layui-col-space15">
        <div class="layui-col-md6 margin-bottom-15">
            <div class="layui-row">
                <div class="layui-col-xs3 text-center">
                    <i class="layui-icon color-blue" style="font-size:60px;line-height:72px">&#xe663;</i>
                </div>
                <div class="layui-col-xs5">
                    <div class="font-s14">新增用户</div>
                    <div class="font-s13 color-desc">今日：{$todayAddUserCount}</div>
                    <div class="font-s13 color-desc">昨日：{$yesterdayAddUserCount}</div>
                    <div class="font-s13 color-desc">总计：{$allUserCount}</div>
                </div>
                <div class="layui-col-xs4">
                    <div class="font-s14">平台盈利</div>
                    <div class="font-s13 color-desc">今日：{$systemTodayProfitAmount}</div>
                    <div class="font-s13 color-desc">昨日：{$systemYesterdayProfitAmount}</div>
                    <div class="font-s13 color-desc">总计：{$systemTotalProfitAmount}</div>
                </div>
            </div>
        </div>

        <div class="layui-col-md6 margin-bottom-15">
            <div class="layui-row">
                <div class="layui-col-xs3 text-center">
                    <i class="layui-icon color-blue" style="font-size:60px;line-height:72px">&#xe65e;</i>
                </div>
                <div class="layui-col-xs5">
                    <div class="font-s14">充值资金 CNY</div>
                    <div class="font-s13 color-desc">今日：{$todayRechargeAmount}</div>
                    <div class="font-s13 color-desc">昨日：{$yesterdayRechargeAmount}</div>
                    <div class="font-s13 color-desc">总计：{$totalRechargeAmount}</div>
                </div>
                <div class="layui-col-xs4">
                    <div class="font-s14">提现资金 CNY</div>
                    <div class="font-s13 color-desc">今日：{$todayWithdrawAmount}</div>
                    <div class="font-s13 color-desc">昨日：{$yesterdayWithdrawAmount}</div>
                    <div class="font-s13 color-desc">总计：{$totalWithdrawAmount}</div>
                </div>
            </div>
        </div>
    </div>

</div>

<!--{if $manangeId eq 10000}
<div class="think-box-shadow store-total-container">
    <div class="margin-bottom-15" style="font-weight: bold ">内部系统</div>
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md6 margin-bottom-15">
            <div class="layui-row">
                <div class="layui-col-xs3 text-center">
                    <i class="layui-icon color-blue" style="font-size:45px;line-height:55px">&#xe64c;</i>
                </div>
                <div class="layui-col-xs5">
                    <div class="font-s14">客服系统</div>
                    <div class="font-s16 color-desc">
                        <a target="\_blank" href="http://customer.nnbot.com/#/chat/chat">
                            http://chat.nnbot.com
                        </a>
                    </div>
                    <div class="font-s13 color-desc">账号: admin &nbsp;&nbsp;&nbsp; 密码: 123456</div>
                </div>
                <div class="layui-col-xs4">
                    <div class="font-s14">日志系统</div>
                    <div class="font-s16 color-desc">
                        <a target="\_blank"
                           href="http://38.150.11.220:5601/app/kibana#/discover?_g=()&_a=(columns:!(_source),index:d07e6120-a3dc-11ee-9dfb-e172ef7a784c,interval:auto,query:(language:kuery,query:''),sort:!(!('@timestamp',desc)))">
                            http://logs.nnbot.com
                        </a>
                    </div>
                    <div class="font-s13 color-desc">账号: 无 &nbsp;&nbsp;&nbsp; 密码: 无</div>
                </div>
            </div>

        </div>

        <div class="layui-col-md6 margin-bottom-15">
            <div class="layui-row">
                <div class="layui-col-xs3 text-center">
                    <i class="layui-icon color-blue" style="font-size:45px;line-height:55px">&#xe64c;</i>
                </div>
                <div class="layui-col-xs5">
                    <div class="font-s14">机器监控</div>
                    <div class="font-s16 color-desc">
                        <a target="\_blank" href="http://8.217.216.195:3000/d/rYdddlPWk/mechines?orgId=1">
                            http://machine.nnbot.com
                        </a>
                    </div>
                    <div class="font-s13 color-desc">账号: admin &nbsp;&nbsp;&nbsp; 密码: Zhang@159129</div>
                </div>
                <div class="layui-col-xs4">
                    <div class="font-s14">服务监控</div>
                    <div class="font-s16 color-desc">
                        <a target="\_blank"
                           href="http://8.217.216.195:3000/d/ypFZFgvmz/go-processes?orgId=1&refresh=30s">
                            http://service.nnbot.com
                        </a>
                    </div>
                    <div class="font-s13 color-desc">账号: admin &nbsp;&nbsp;&nbsp; 密码: Zhang@159129</div>
                </div>
            </div>
        </div>

    </div>


    <div class="layui-row layui-col-space15">
        <div class="layui-col-md6 margin-bottom-15">
            <div class="layui-row">
                <div class="layui-col-xs3 text-center">
                    <i class="layui-icon color-blue" style="font-size:45px;line-height:55px">&#xe64c;</i>
                </div>
                <div class="layui-col-xs5">
                    <div class="font-s14">上线系统</div>
                    <div class="font-s16 color-desc">
                        <a target="\_blank" href="http://51.79.240.171:8153/go/pipelines#!/">
                            http://pipelines.nnbot.com
                        </a>
                    </div>
                    <div class="font-s13 color-desc">账号: admin &nbsp;&nbsp;&nbsp; 密码: 123456</div>
                </div>
            </div>
        </div>
    </div>

</div>-->
{/if}


{/block}